package com.hmo.http;

public enum ServiceEnum {
    getAppByType0("/app/type/0","type0","GET"),
    getAppByType1("/app/type/1","type0","GET"),
    getAppByType2("/app/type/2","type0","GET"),
    getImage("/image/","获取图片","GET"),
    getApk("/apk/","获取apk","GET"),
    getNewVersion("/version/1","获取新版本","GET")
;
    private String url;
    private String urlFlag;
    private String Method;

    ServiceEnum(String url, String urlFlag, String method) {
        this.url = "http://app.coolmi.tk/api"+ url;
        //this.url ="http://192.168.124.10/api"+url;
        this.urlFlag = urlFlag;
        Method = method;
    }

    public ServiceEnum addUrlName(String urlName) {
        this.url =this.url +urlName;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public String getUrlFlag() {
        return urlFlag;
    }

    public String getMethod() {
        return Method;
    }
}
